package com.yunding.house.service.impl;


import com.yunding.house.mapper.PermissionMapper;
import com.yunding.house.pojo.Permission;
import com.yunding.house.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * function定义 服务实现类
 * </p>
 *
 * @author linyang
 * @since 2019-08-15
 */
@Service
public class PermissionServiceImpl  implements PermissionService {

    @Autowired
    private PermissionMapper permissionMapper;

    @Override
    public List<Permission> queryAll() {
        return permissionMapper.queryAll();
    }

    @Override
    public List<Permission> loadUserResources(Map<String, Object> map) {
        return permissionMapper.loadUserResources(map);
    }
}
